package com.kaigejava.juc.cas;

/**
 * @author kaigejava
 * CAS 演示代码1
 */
public class CasDemo2 {
    public static void main(String[] args) {
       // say2();
       int ixxx =  say2();
        System.out.println("ixxx"+ixxx);
     //   System.out.println(say());
    }

    private static int say2() {
        return  1;
      /*  try{
            System.out.println(0);
           // return 0;
        }catch (Exception e){
            System.out.println(-1);
           // return -1;
        }finally {
            System.out.println(1);
          //  return  5;
        }*/
    }

/*
    public static String  say() {
        try{
            System.out.println(0);
            return "0";
        }catch (Exception e){
            System.out.println(-1);
            return "-1";
        }finally {
            System.out.println(1);
            return  "5";
        }
    }*/
}
